﻿ALTER TABLE [dbo].[SingleMessageSet]
    ADD CONSTRAINT [FK_TopicSingleMessage] FOREIGN KEY ([ParentMessageId]) REFERENCES [dbo].[TopicSet] ([MessageId]) ON DELETE NO ACTION ON UPDATE NO ACTION;

